Skip to content

Add best practice note about version #9700

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from
Closed

Add best practice note about version #9700

wants to merge 4 commits into from

Conversation

arderyp
Copy link
Contributor

@arderyp arderyp commented Apr 28, 2018

Adding this info based on request by @nicolas-grekas in #27037

Adding this info based on request by @nicolas-grekas in #27037 (symfony/symfony#27037)

.. best-practice::

PHPUnit Bridge is designed to remain compatible with Symfony version 2.7 up to master,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure we should tell about 2.7: it's being EOLed in a few weeks. Maybe something like that instead?

The PHPUnit bridge is designed to work with all maintained versions of Symfony components, even across different major versions of them. You should always use its very latest stable major version to get the most accurate deprecation reports.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe also, the line above "$ composer require --dev symfony/phpunit-bridge" should be updated to
$ composer require --dev "symfony/phpunit-bridge:*"

@arderyp
Copy link
Contributor Author

arderyp commented Apr 29, 2018

@nicolas-grekas, I updated the PR to implement your edit

fabpot added a commit to symfony/test-pack that referenced this pull request Apr 30, 2018
This PR was merged into the master branch.

Discussion
----------

Allow any versions of the phpunit bridge

Following the advice in symfony/symfony-docs#9700

Commits
-------

22a2677 Allow any versions of the phpunit bridge

The PHPUnit bridge is designed to work with all maintained versions of Symfony components,
even across different major versions of them. You should always use its very latest stable
major version to get the most accurate deprecation report
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing dot at end of line.

@arderyp
Copy link
Contributor Author

arderyp commented May 1, 2018

hey @nicolas-grekas, sorry about the missing period. I tried adding it and pushing it to my fork's PR branc, but it didn't get automatically ingested here. Is there something else I need to do, or will someone else fix that?

@nicolas-grekas
Copy link
Member

I can see the dot here now, all good on my side, thank you very much.

@javiereguiluz javiereguiluz added this to the 2.7 milestone May 16, 2018
@javiereguiluz
Copy link
Member

Thanks for this contribution Philip! We merged it on the 2.7 branch and we replaced the "best practice" directive by a "note" because the best practice is reserved for the "Symfony Best Practices" book (https://symfony.com/doc/current/best_practices/index.html), but other than that, it was a great first Symfony Docs contribution. Thanks!

javiereguiluz added a commit that referenced this pull request May 16, 2018
…luz)

This PR was submitted for the 4.0 branch but it was merged into the 2.7 branch instead (closes #9700).

Discussion
----------

Add best practice note about version

Adding this info based on request by @nicolas-grekas in [#27037](symfony/symfony#27037)

<!--

If your pull request fixes a BUG, use the oldest maintained branch that contains
the bug (see https://symfony.com/roadmap for the list of maintained branches).

If your pull request documents a NEW FEATURE, use the same Symfony branch where
the feature was introduced (and `master` for features of unreleased versions).

-->

Commits
-------

6082b97 Minor tweak
9ecff4b components/phpunit_bridge.rst
cd7fd94 Add best practice note about version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants